<?php

/**
 * @author shuang
 * @date 2016-11-24 19:14:40
 */
use yii\helpers\Url;
use common\widgets\DatalistWidgets;
use common\components\MTools;

//添加操作提示模板
echo $this->render("/layouts/prompt", array("labels" => $labels));

//调用数据列表模板
echo DatalistWidgets::widget([
    'data_url' => Url::toRoute(["task/ajaxoverduelist"]),
    "labels" => $labels,
    "columns" => ["title", "qrcode", "sample_figure", "reportcount", "status", "action"],
    "tableOtherAttributes" => [
        "data-search" => "true",
    ],
    "fieldAttributes" => [
        "task_image" => [
            "data-class" => "table-image-list"
        ],
        "sample_figure" => [
            "data-class" => "table-image-list"
        ]
    ]
]);
